package net.mem2b.codegen.jet;

public class TextElement extends TemplateElement {

	public TextElement(String content) {
		super(content);
	}

	@Override
	public void generate(StringBuilder builder) {
		String content = getContent().replaceAll("\n", "\\\\n").replaceAll("\r", "\\\\r").replaceAll("\t", "\\\\t");
		builder.append("\n\t\tbuilder.append(\"" + content + "\");");
	}
}
